<div class="scroll-container"><div class="for-scroll">
    
    <div class="userinfo">
        <div class="icon"><img src="images/avatar.png" height="76px"/></div>
        <div class="userdetail">
            欢迎您！&nbsp;&nbsp;<span class="name">--</span> <br/>
            <span class="line2">
                账户余额：<span class="red"> 0.00 </span>RMB
                <a href="#"><img src="images/icon-refresh.png" style="width:20px;"></a>
            </span>
        </div>
        <div class="clear"></div>
    </div>
    
    <ul class="am-avg-sm-3 index_menus">
        <li><a href="#" class="profile">
            <img src="../public/all/images/phone/menu-profile.png" height="56px"/>
            <div>个人资料</div>
        </a></li>
    
        <li><a href="#" class="password">
            <img src="../public/all/images/phone/menu-modifypwd.png" height="56px"/>
            <div>登录密码</div>
        </a></li>
    
        <li><a href="#" class="message">
            <img src="../public/all/images/phone/menu-message.png" height="56px"/>
            <div>信息中心</div>
        </a></li>
    
        <li><a href="#" class="charge">
            <img src="../public/all/images/phone/menu-funds.png" height="56px"/>
            <div>资金管理</div>
        </a></li>
    
        <li><a href="#" class="take_password">
            <img src="../public/all/images/phone/menu-transfer.png" height="56px"/>
            <div>取款密码</div>
        </a></li>
    
        <li><a href="#" class="bank">
            <img src="../public/all/images/phone/menu-bankaccount.png" height="56px"/>
            <div>银行账号</div>
        </a></li>
    
        <li><a href="center.html?cmd=today">
            <img src="../public/all/images/phone/menu-record.png" height="56px"/>
            <div>今日已结</div>
        </a></li>
    
        <li><a href="#" class="bet">
            <img src="../public/all/images/phone/menu-record.png" height="56px"/>
            <div>下注记录</div>
        </a></li>
    
        <li><a href="javascript:void(0)" onclick="_MEIQIA('showPanel')">
            <img src="../public/all/images/phone/menu-service.png" height="56px"/>
            <div>客服</div>
        </a></li>
    </ul>
    
    <div style="height:50px;"></div>
    </div></div>
    
    <style type="text/css">
        .scroll-container {
            position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; overflow: hidden;
        }
        #center-top .icon-right {
            top: 4px;
        }
        .userinfo {
            height: 115px;
            background-color: rgba(255, 255, 255, 0.1);
            color: #fff;
            font-size: 14px;
        }
        .userinfo .icon {
            float: left;
            width: 120px;
            text-align: center;
            padding-top: 20px;
        }
        .userinfo .userdetail {
            float: left;
            margin-left: 0px;
            margin-top: 30px;
            color: #f0ecec;
            font-size: 16px;
            font-weight: 600;
        }
        .userinfo .userdetail .line2 {
            font-size: 14px;
            color: #f0ecec;
        }
    
        .index_menus {
            background-color: rgba(255, 255, 255, 0.5);
            border-bottom: 1px solid rgba(255, 255, 255, 0.7);
        }
        .index_menus li {
            text-align: center;
            height: 131px;
            font-size: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.7);
            border-left: 1px solid rgba(255, 255, 255, 0.7);
        }
        .index_menus li img {
            margin-top: 22px;
        }
        .index_menus li a {
            color: #47535b;
            font-size: 14px;
            font-weight: normal;
            line-height: 30px;
        }
    </style>
    
    <script>
        $(".home").show();
        $(".back").hide();
        $(".icon-right .exit").show();
        $(".icon-right .menu").hide();
        $(".home").click(function() {
            Util.jumpUrl({
                file: 'index.html',
            });
        });
        var arr = $("a");
        for (var i = 0; i < arr.length; i++) {
            var c = $(arr[i]).attr("href");
            c = c.replace(/__sid__/g, Util.sid || '');
            $(arr[i]).attr("href", c);
        }
    
        ME.cb = function() {
            fillUserInfo();
        }
        ME.query();
        function fillUserInfo() {
            if (context.user) {
                $(".userinfo .name").html(context.user.user.mobile || '游客');
                $(".userinfo .line2 .red").html(" " + (context.user.balance / 100).toFixed(2) + " ");
            }
        }
        fillUserInfo();
        $(".userinfo .line2 img").click(function() {
            startSpin();
            ME.query(function() {
                stopSpin();
            });
        })
    
        $(".icon-right .exit").click(function() {
            // TODO: 退出提示框
            ME.logout();
            window.location.href = "login.html";
        })
    
        $(".index_menus .profile").click(function() {
            if (context.user && context.user.user && context.user.user.mobile) {
                Util.jumpUrl({
                    cmd: "profile",
                })
            }
            else {
                alert2("试玩账号无权访问，请先注册");
            }
        })
        $(".index_menus .password").click(function() {
            if (context.user && context.user.user && context.user.user.mobile) {
                Util.jumpUrl({
                    cmd: "password",
                })
            }
            else {
                alert2("试玩账号无权访问，请先注册");
            }
        })
        $(".index_menus .charge").click(function() {
            if (context.user && context.user.user && context.user.user.mobile) {
                Util.jumpUrl({
                    cmd: "charge",
                    n: ""
                })
            }
            else {
                alert2("试玩账号无权访问，请先注册");
            }
        })
        $(".index_menus .take_password").click(function() {
            if (context.user && context.user.user && context.user.user.mobile) {
                Util.jumpUrl({
                    cmd: "take_password",
                })
            }
            else {
                alert2("试玩账号无权访问，请先注册");
            }
        })
        $(".index_menus .bank").click(function() {
            if (context.user && context.user.user && context.user.user.mobile) {
                Util.jumpUrl({
                    cmd: "bank",
                })
            }
            else {
                alert2("试玩账号无权访问，请先注册");
            }
        })
        $(".index_menus .bet").click(function() {
            if (context.user && context.user.user && context.user.user.mobile) {
                Util.jumpUrl({
                    cmd: "bet",
                })
            }
            else {
                alert2("试玩账号无权访问，请先注册");
            }
        })
        $(".index_menus .message").click(function() {
            if (context.user && context.user.user && context.user.user.mobile) {
                Util.jumpUrl({
                    cmd: "message",
                })
            }
            else {
                alert2("试玩账号无权访问，请先注册");
            }
        })

        var _mainScroll;
        $(function() {
            _mainScroll = new IScroll(".scroll-container", {
                scrollX: false,
                scrollY: true,
                click: true,
            })
        });
    </script>